#ifndef DLGRENAME_H
#define DLGRENAME_H

#include <QDialog>

namespace Ui {
class DlgRename;
}

class DlgRename : public QDialog
{
    Q_OBJECT
    
public:
    explicit DlgRename(QWidget *parent = 0);
    explicit DlgRename(QString &name, QWidget *parent = 0);
    ~DlgRename();

    QString getDescr() const;
    
private slots:
    void on_lineEdit_descr_textEdited(const QString &text);

    void on_buttonBox_accepted();

    void on_buttonBox_rejected();

private:
    Ui::DlgRename *ui;

    QString m_descr;
    QString m_descr_cache;
};

#endif // DLGRENAME_H
